#include <iostream>
using namespace std;

int main()
{
    //赋值运算符

    // =
    int a = 10;
    cout << "赋值之前，a = " << a << endl;
    a = 10010;
    cout << "=赋值之后，a = " << a << endl;

    // +=
    a = 10;
    a += 2;
    cout << "+=赋值之后，a = " << a << endl;

    // -=
    a = 10;
    a -= 7;
    cout << "-=赋值之后，a = " << a << endl;

    // *=
    a = 10;
    a *= 20;
    cout << "*=赋值之后，a = " << a << endl;

    // /=
    a = 10;
    a /= 3;
    cout << "/=赋值之后，a = " << a << endl;

    // %=
    a = 10;
    a %= 3;
    cout << "%=赋值之后，a = " << a << endl;
    
    return 0;
}